package com.ruoyi.utils;

import java.util.Date;

public class Convert {

    /**
     * 将Excel数字日期转换为Java Date对象
     * @param excelDate Excel日期数值（如 44930 = 2023-01-01）
     */
    public static Date excelNumberToDate(Double excelDate) {
        long javaTime = (long) ((excelDate - 25569) * 86400 * 1000);
        return new Date(javaTime);
    }
}
